package com.surprise.base.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * PageRes.java
 * @author nick
 * @since 2015年5月2日
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageRes {
	private int start;
	private int num;
	private int totalNum;
	
	public PageRes(PageReq req) {
		this(req, 0);
	}
	
	public PageRes(PageReq req, int totalNum) {
		this.start = req.getStart();
		this.num = req.getNum();
		this.totalNum = totalNum;
	}
}
